import { Injectable } from '@nestjs/common';
import * as svgCaptcha  from 'svg-captcha'
@Injectable()
export class CaptchaService {
    captcha(){
        const captcha = svgCaptcha.create({
            size:3,
            noise:5,
            fontSize: 50, //文字大小
            width: 100,  //宽度
            height: 34,  //高度
            color:true,
            background: '#cc9966'
        });
        return captcha
    }
}
